package com.taotao.job.rpc.invoker;

import com.taotao.job.rpc.core.meta.IfaceMeta;
import com.taotao.job.rpc.invoker.caller.RemoteCaller;
import lombok.extern.slf4j.Slf4j;


/**
 * 带地址的远程执行器
 *
 * @author fanbeibei
 * @date 2020/10/31 1:02
 */
@Slf4j
public class AddressedRemoteInvoker extends AbstractRemoteInvoker {
    protected final String address;

    public AddressedRemoteInvoker(RemoteCaller remoteCaller, String address) {
        super(remoteCaller);
        this.address = address;
    }

    @Override
    protected String getRemoteAddress(IfaceMeta ifaceMeta) {
        return address;
    }


}
